<form id="pagerForm" method="post" action="<?php echo Yii::app()->request->requestUri?>">
	<input type="hidden" name="status" value="${param.status}">
	<input type="hidden" name="keywords" value="${param.keywords}" />
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="${model.numPerPage}" />
	<input type="hidden" name="orderField" value="${param.orderField}" />
</form>

<div class="page">
	<div class="pageContent">
		<table class="table" layouth="48">
			<thead>
				<tr>
					<th width="100">ID</th>
					<th>分类名</th>
					<th>分类类型</th>
					<th width="100" align="center">操作</th>
				</tr>
			</thead>
			<tbody>
			    <?php foreach ($rows as $k => $row):?>
				<tr>
					<td><?php echo $row->id?></td>
					<td>
					<?php echo $row->name?>
					【<?php echo count($row->relation)?>】
					</td>
					<td><?php if($row->model_type == 0)echo '文章模型';else echo '链接模型';?></td>
					<td><a href="<?php echo Yii::app()->params['admin_domain']?>/article/category_edit/id/<?php echo $row->id?>" target="navTab">修改</a>/<a href="<?php echo Yii::app()->params['admin_domain']?>/article/category_delete/id/<?php echo $row->id?>" target="navTabTodo" title="确定要删除吗?">删除</a></td>
				</tr>
				<?php endforeach;?>
			</tbody>
		</table>

		<div class="panelBar">
			<div class="pages">
				<span>共<?php echo $pages->itemCount?>条</span>
			</div>
			
			<div class="pagination" targetType="navTab" totalCount="<?php echo $pages->itemCount?>" numPerPage="<?php echo $pages->pageSize?>" pageNumShown="10" currentPage="<?php echo $pages->currentPage + 1?>"></div>

		</div>
	</div>
</div>